home *** CD-ROM | disk | FTP | other *** search
- _global.app = this;
- app.soundVol = 100;
- app.myscreenName = "null";
- app.basePath = "http://www.nick.com";
- app.userPath = "/games/common/user_name/getUserInfo.jhtml";
- app.scorePath = "/common/score/Scoreboard.jhtml?msg=Q&game=sb_panic";
- loadUser = new LoadVars();
- loadUser.load(app.basePath + app.userPath);
- loadUser.onLoad = function()
- {
- returnLog = loadUser.toString();
- app.rawName = this.screenName;
- index = app.rawName.indexOf("\n");
- trace("index " + index);
- if(index > -1)
- {
- trace("stripping return");
- app.myscreenName = app.rawName.substr(0,index);
- }
- else
- {
- trace("no return to strip....");
- app.myscreenName = app.rawName;
- }
- if(app.myscreenName == "null")
- {
- trace("null returned");
- }
- else if(app.myscreenName == "undefined")
- {
- trace("undefined returned");
- app.myscreenName = "null";
- }
- else if(app.myscreenName == "")
- {
- trace("blank val returned");
- app.myscreenName = "null";
- }
- else if(app.myscreenName == null)
- {
- trace("actual null returned");
- }
- };
-